package com.leaf.u_spring.chapter01;

public class BraveKnight implements Knight {

	private Quest quest;
	
	//构造器注入 Quest被注入进来
	public BraveKnight(Quest quest){
		this.quest = quest;
	}
	
	public void embarkOnQuest(){
		quest.embark();
	}
	
	
	
}
